import sympy as sp

t = sp.symbols('t')
x = sp.sin(t)  # φ(t) = sin(t)
y = t**2 + 1   # ψ(t) = t² + 1

dx_dt = sp.diff(x, t)
dy_dt = sp.diff(y, t)
dy_dx = dy_dt / dx_dt

print("参数方程求导结果:")
sp.pprint(dy_dx)